
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>Statement · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="qk022-syntax-analysis-expression.html" />
    
    
    <link rel="prev" href="qk020-syntax-analysis.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="qk000-dev-log.html">
            
                <a href="qk000-dev-log.html">
            
                    
                    Quick制作日志 － 开篇
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="qk010-lexical-analysis.html">
            
                <a href="qk010-lexical-analysis.html">
            
                    
                    Quick制作日志 － 词法分析
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="qk020-syntax-analysis.html">
            
                <a href="qk020-syntax-analysis.html">
            
                    
                    Quick制作日志 － 语法分析
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.4.1" data-path="qk021-syntax-analysis-statement.html">
            
                <a href="qk021-syntax-analysis-statement.html">
            
                    
                    Statement
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="qk022-syntax-analysis-expression.html">
            
                <a href="qk022-syntax-analysis-expression.html">
            
                    
                    Expression
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="qk023-syntax-analysis-primary-expression.html">
            
                <a href="qk023-syntax-analysis-primary-expression.html">
            
                    
                    Primary Expression
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="qk024-syntax-analysis-constant.html">
            
                <a href="qk024-syntax-analysis-constant.html">
            
                    
                    Constant Value
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="qk030-program-execute.html">
            
                <a href="qk030-program-execute.html">
            
                    
                    Quick制作日志 － 程序执行
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >Statement</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x8BED;&#x6CD5;&#x5206;&#x6790;-statement">&#x8BED;&#x6CD5;&#x5206;&#x6790; Statement</h1>
<p>Statement: &#x8BED;&#x53E5;&#xFF0C;if&#x8BED;&#x53E5;, for&#x5FAA;&#x73AF;&#x8BED;&#x53E5;, return &#x8BED;&#x53E5;, continue&#x8BED;&#x53E5;, break&#x8BED;&#x53E5;&#x7B49;&#x7B49;&#x3002;&#x3002;&#x3002;</p>
<pre><code>    ExpressionStatement // &#x8868;&#x8FBE;&#x5F0F;&#x8BED;&#x53E5;
    IfStatement // if&#x8BED;&#x53E5;
    ForStatement // for&#x5FAA;&#x73AF;&#x8BED;&#x53E5;
    ForeachStatement // &#x904D;&#x5386;&#x8BED;&#x53E5;
    ForIndexStatement // &#x7D22;&#x5F15;&#x904D;&#x5386;&#x8BED;&#x53E5;
    ForItemStatement // &#x503C;&#x904D;&#x5386;&#x8BED;&#x53E5;
    SwitchStatement // switch &#x8BED;&#x53E5;
    MultiStatement // &#x591A;&#x91CD;&#x8BED;&#x53E5;
    ContinueStatement // continue &#x8BED;&#x53E5;
    BreakStatement // break &#x8BED;&#x53E5;
    ReturnStatement // &#x8FD4;&#x56DE;&#x8BED;&#x53E5;
</code></pre><p>Quick &#x6E90;&#x7801;&#x7531;&#x591A;&#x4E2A;Statement&#x7EC4;&#x6210;&#xFF0C;&#x6216;&#x8005;&#x7531;&#x591A;&#x4E2A;Statement&#x4E0E;&#x81EA;&#x5B9A;&#x4E49;&#x51FD;&#x6570;&#x7EC4;&#x6210;&#xFF0C;&#x5982;&#x4E0B;&#xFF1A;<br>&#x793A;&#x4F8B;&#x4E00;</p>
<pre><code class="lang-js">a = <span class="hljs-number">3</span>
b = <span class="hljs-number">4</span>
c = a * b
println(<span class="hljs-string">&quot;c -&gt; &quot;</span>, c)
</code></pre>
<p>&#x793A;&#x4F8B;&#x4E8C;</p>
<pre><code class="lang-js">add(num1, num2) {
    <span class="hljs-keyword">return</span> num1 + num2
}
c = add(<span class="hljs-number">4</span>, <span class="hljs-number">5</span>)
println(<span class="hljs-string">&quot;c -&gt; &quot;</span>, c)
</code></pre>
<h3 id="&#x4ECE;token&#x5217;&#x8868;&#x63D0;&#x53D6;statement">&#x4ECE;Token&#x5217;&#x8868;&#x63D0;&#x53D6;Statement</h3>
<p><img src="../img/syntax-analysis/extract-statement.png" alt="illustration">
&#x5047;&#x8BBE;&#x4ECE;&#x8BCD;&#x6CD5;&#x5206;&#x6790;&#x5F97;&#x6765;&#x7684;Token&#x5217;&#x8868;&#x4E3A; Main Function&#x7684;Token&#x5217;&#x8868;<br>Main Function&#x7684;Token&#x5217;&#x8868;&#x53C8;&#x901A;&#x8FC7;&#x8BED;&#x6CD5;&#x5206;&#x6790;if&#x8BED;&#x53E5;&#xFF0C;&#x8868;&#x8FBE;&#x5F0F;&#x8BED;&#x53E5;&#xFF0C;&#x81EA;&#x5B9A;&#x4E49;&#x51FD;&#x6570;&#x7B49;&#x7B49;&#x3002;&#x3002;&#x3002;<br>&#x800C;if&#x8BED;&#x53E5;&#x7B49;&#x8BED;&#x53E5;&#x53C8;&#x53EF;&#x80FD;&#x5305;&#x542B;for&#x5FAA;&#x73AF;&#x8BED;&#x53E5;&#xFF0C;if &#x8BED;&#x53E5;&#x7B49;&#x7B49;...<br>&#x6545; &#x4ECE;Token&#x5217;&#x8868;&#x63D0;&#x53D6;Statement &#x8FD9;&#x90E8;&#x5206;&#x903B;&#x8F91;&#x5FC5;&#x987B;&#x91CD;&#x7528;&#xFF0C;&#x901A;&#x8FC7;&#x9012;&#x5F52;&#x8FDB;&#x884C;&#x91CD;&#x7528;<br>&#x6700;&#x7EC8;&#x5B9E;&#x73B0;&#x65F6;&#x5206;&#x5982;&#x4E0B;&#x4E24;&#x6B65;&#xFF1A;</p>
<ol>
<li>&#x4ECE;Token&#x5217;&#x8868;&#x63D0;&#x53D6;Statement</li>
<li>&#x63D0;&#x53D6;&#x51FA;&#x6765;&#x7684;Statement&#x90FD;&#x8981;&#x7EC6;&#x5316;&#x81F3;&#x8868;&#x8FBE;&#x5F0F;&#x8BED;&#x53E5;(ExpressionStatement)<blockquote>
<p>&#x8868;&#x8FBE;&#x5F0F;&#x8BED;&#x53E5;(ExpressionStatement): &#x53EA;&#x5305;&#x542B;&#x4E00;&#x4E2A;&#x8868;&#x8FBE;&#x5F0F;&#x7684;&#x8BED;&#x53E5;&#xFF0C;&#x662F;Statement&#x5230;Expression&#x7684;&#x8FC7;&#x6E21;</p>
</blockquote>
</li>
</ol>
<p>&#x6570;&#x636E;&#x7ED3;&#x6784;&#x4E09;&#x4E2A;&#x5B9A;&#x4E49;&#xFF1A;StatementList, Function, Statement<br>Function, Statement&#x7EE7;&#x627F;&#x81EA;StatementList<br>Function&#x662F;&#x51FD;&#x6570;&#x7684;&#x62BD;&#x8C61;<br>Statement&#x662F;&#x5404;&#x79CD;&#x8BED;&#x53E5;&#x7684;&#x62BD;&#x8C61;<br>StatementList&#x7684;&#x5B9A;&#x4E49;</p>
<pre><code class="lang-go"><span class="hljs-keyword">type</span> StatementList <span class="hljs-keyword">interface</span> {
    stmts() []*Statement <span class="hljs-comment">// &#x8BED;&#x53E5;&#x5217;&#x8868;</span>
    addStatement(*Statement) <span class="hljs-comment">// &#x6DFB;&#x52A0;&#x8BED;&#x53E5;&#x81F3;&#x8BED;&#x53E5;&#x5217;&#x8868;</span>
    getRaw() []Token <span class="hljs-comment">// &#x83B7;&#x53D6;StatementList&#x7684;Token&#x5217;&#x8868;</span>
    setRaw([]Token) <span class="hljs-comment">// &#x8BBE;&#x7F6E;StatementList&#x7684;Token&#x5217;&#x8868;</span>
    isCompiled() <span class="hljs-keyword">bool</span> <span class="hljs-comment">// &#x8BE5;StatementList&#x662F;&#x5426;&#x5B8C;&#x6210;&#x8BED;&#x6CD5;&#x5206;&#x6790;</span>
    setCompiled() <span class="hljs-comment">// &#x6807;&#x8BB0;&#x4E3A;&#x5DF2;&#x5B8C;&#x6210;&#x8BED;&#x6CD5;&#x5206;&#x6790;</span>
}
</code></pre>
<p>Function&#x7684;&#x5B9A;&#x4E49;</p>
<pre><code class="lang-go"><span class="hljs-keyword">type</span> Statement <span class="hljs-keyword">struct</span> {
    t StatementType
    expr *Expression <span class="hljs-comment">// &#x7528;&#x4E8E;expressionStatement.</span>
    preExprTokens []Token <span class="hljs-comment">// &#x7528;&#x4E8E;&#x666E;&#x901A;for&#x8BED;&#x53E5;</span>
    condExprTokens []Token <span class="hljs-comment">// &#x7528;&#x4E8E;if,for&#x8BED;&#x53E5;</span>
    postExprTokens []Token <span class="hljs-comment">// &#x7528;&#x4E8E;&#x666E;&#x901A;for&#x8BED;&#x53E5;</span>
    preExpr *Expression  <span class="hljs-comment">// &#x7528;&#x4E8E;for&#x8BED;&#x53E5;</span>
    condExpr *Expression <span class="hljs-comment">// &#x7528;&#x4E8E;if,for&#x8BED;&#x53E5;</span>
    postExpr *Expression <span class="hljs-comment">// &#x7528;&#x4E8E;for&#x8BED;&#x53E5;</span>
    condStmts []*Statement <span class="hljs-comment">// &#x7528;&#x4E8E;if, switch&#x8BED;&#x53E5;</span>
    defStmt *Statement <span class="hljs-comment">// &#x7528;&#x4E8E;if, switch&#x8BED;&#x53E5;</span>
    block []*Statement <span class="hljs-comment">// stmt&#x6838;&#x5FC3;&#x7EC4;&#x6210;(&#x7F16;&#x8BD1;&#x540E;&#x7684;&#x4FE1;&#x606F;)</span>
    raw []Token <span class="hljs-comment">// stmt&#x6838;&#x5FC3;&#x7EC4;&#x6210;, token&#x5217;&#x8868;(&#x7F16;&#x8BD1;&#x524D;&#x7684;&#x4FE1;&#x606F;)</span>
    compiled <span class="hljs-keyword">bool</span> <span class="hljs-comment">// &#x8BE5;&#x8BED;&#x53E5;&#x662F;&#x5426;&#x5DF2;&#x7F16;&#x8BD1;</span>
    fpi *ForPlusInfo <span class="hljs-comment">// &#x589E;&#x5F3A;for, &#x76F8;&#x5173;&#x7684;&#x4FE1;&#x606F;</span>
}
</code></pre>
<p>Statement&#x7684;&#x5B9A;&#x4E49;</p>
<pre><code class="lang-go"><span class="hljs-keyword">type</span> Statement <span class="hljs-keyword">struct</span> {
    t StatementType
    expr *Expression <span class="hljs-comment">// &#x7528;&#x4E8E;expressionStatement.</span>
    preExprTokens []Token <span class="hljs-comment">// &#x7528;&#x4E8E;&#x666E;&#x901A;for&#x8BED;&#x53E5;</span>
    condExprTokens []Token <span class="hljs-comment">// &#x7528;&#x4E8E;if,for&#x8BED;&#x53E5;</span>
    postExprTokens []Token <span class="hljs-comment">// &#x7528;&#x4E8E;&#x666E;&#x901A;for&#x8BED;&#x53E5;</span>
    preExpr *Expression  <span class="hljs-comment">// &#x7528;&#x4E8E;for&#x8BED;&#x53E5;</span>
    condExpr *Expression <span class="hljs-comment">// &#x7528;&#x4E8E;if,for&#x8BED;&#x53E5;</span>
    postExpr *Expression <span class="hljs-comment">// &#x7528;&#x4E8E;for&#x8BED;&#x53E5;</span>
    condStmts []*Statement <span class="hljs-comment">// &#x7528;&#x4E8E;if, switch&#x8BED;&#x53E5;</span>
    defStmt *Statement <span class="hljs-comment">// &#x7528;&#x4E8E;if, switch&#x8BED;&#x53E5;</span>
    block []*Statement <span class="hljs-comment">// stmt&#x6838;&#x5FC3;&#x7EC4;&#x6210;(&#x7F16;&#x8BD1;&#x540E;&#x7684;&#x4FE1;&#x606F;)</span>
    raw []Token <span class="hljs-comment">// stmt&#x6838;&#x5FC3;&#x7EC4;&#x6210;, token&#x5217;&#x8868;(&#x7F16;&#x8BD1;&#x524D;&#x7684;&#x4FE1;&#x606F;)</span>
    compiled <span class="hljs-keyword">bool</span> <span class="hljs-comment">// &#x8BE5;&#x8BED;&#x53E5;&#x662F;&#x5426;&#x5DF2;&#x7F16;&#x8BD1;</span>
    fpi *ForPlusInfo <span class="hljs-comment">// &#x589E;&#x5F3A;for, &#x76F8;&#x5173;&#x7684;&#x4FE1;&#x606F;</span>
}
</code></pre>
<p><img src="../img/syntax-analysis/syntax-analysis-recursion.png" alt="illustration"></p>
<p>&#x5173;&#x952E;&#x4EE3;&#x7801;&#x5982;&#x4E0B;</p>
<pre><code class="lang-go"><span class="hljs-keyword">func</span> Compile(stmts StatementList) {
    <span class="hljs-keyword">if</span> stmts == <span class="hljs-literal">nil</span> {
        <span class="hljs-keyword">return</span>
    }
    <span class="hljs-keyword">if</span> stmts.isCompiled() {
        <span class="hljs-keyword">return</span>
    } <span class="hljs-keyword">else</span> {
        stmts.setCompiled()
    }
    extractStatement(stmts)
    parseStatementList(stmts.stmts())

    <span class="hljs-keyword">for</span> _, customFunc := <span class="hljs-keyword">range</span> funcList {
        Compile(customFunc)
    }
}
</code></pre>
<pre><code class="lang-go"><span class="hljs-keyword">func</span> extractStatement(stmts StatementList) {
    ts := stmts.getRaw()
    <span class="hljs-keyword">for</span> i := <span class="hljs-number">0</span>; i &lt; <span class="hljs-built_in">len</span>(ts); {
        t := ts[i]
        <span class="hljs-keyword">var</span> endIndex <span class="hljs-keyword">int</span>
        <span class="hljs-keyword">var</span> stmt *Statement

        <span class="hljs-keyword">if</span> !t.isIdentifier() &amp;&amp; !t.isComplex() {
            <span class="hljs-keyword">goto</span> nextLoop
        }
        <span class="hljs-keyword">switch</span> t.str {
        <span class="hljs-keyword">case</span> <span class="hljs-string">&quot;if&quot;</span>:
            stmt, endIndex = extractIfStatement(i, ts)
        <span class="hljs-keyword">case</span> <span class="hljs-string">&quot;for&quot;</span>:
            stmt, endIndex = extractForStatement(i, ts)
        <span class="hljs-keyword">case</span> <span class="hljs-string">&quot;foreach&quot;</span>:
            stmt, endIndex = extractForeachStatement(i, ts)
        <span class="hljs-keyword">case</span> <span class="hljs-string">&quot;fori&quot;</span>:
            stmt, endIndex = extractForindexStatement(i, ts)
        <span class="hljs-keyword">case</span> <span class="hljs-string">&quot;forv&quot;</span>:
            stmt, endIndex = extractForitemStatement(i, ts)
        <span class="hljs-keyword">case</span> <span class="hljs-string">&quot;switch&quot;</span>:
        <span class="hljs-keyword">case</span> <span class="hljs-string">&quot;continue&quot;</span>:
            stmt, endIndex = extractContinueStatement(i, ts)
        <span class="hljs-keyword">case</span> <span class="hljs-string">&quot;break&quot;</span>:
            stmt, endIndex = extractBreakStatement(i, ts)
        <span class="hljs-keyword">case</span> <span class="hljs-string">&quot;return&quot;</span>:
            stmt, endIndex = extractReturnStatement(i, ts)
        <span class="hljs-keyword">default</span>:
            <span class="hljs-keyword">if</span> t.isFdef() {
                <span class="hljs-comment">// &#x63D0;&#x53D6; &#x51FD;&#x6570;&#x5B9A;&#x4E49;</span>
                f, endIndex1 := extractFunction(i, ts)
                funcList[f.name] = f
                i = endIndex1
                <span class="hljs-keyword">goto</span> nextLoop
            }
            <span class="hljs-comment">// &#x63D0;&#x53D6; &#x8868;&#x8FBE;&#x5F0F;&#x8BED;&#x53E5;</span>
            stmt, endIndex = extractExpressionStatement(i, ts)

        }
        <span class="hljs-keyword">if</span> endIndex &gt; <span class="hljs-number">0</span> {
            stmts.addStatement(stmt)
            i = endIndex
        }

    nextLoop:
        i++
    }
}
</code></pre>
<pre><code class="lang-go"><span class="hljs-keyword">func</span> parseStatementList(stmts []*Statement) {
    <span class="hljs-keyword">for</span> _, stmt := <span class="hljs-keyword">range</span> stmts {
        parseStatement(stmt)
    }
}

<span class="hljs-keyword">func</span> parseStatement(stmt *Statement) {
    ts := stmt.raw
    <span class="hljs-keyword">switch</span> {
    <span class="hljs-keyword">case</span> stmt.isExpressionStatement():
        stmt.expr = extractExpression(ts)

    <span class="hljs-keyword">case</span> stmt.isIfStatement():
        parseIfStatement(stmt)

    <span class="hljs-keyword">case</span> stmt.isForStatement():
        parseForStatement(stmt)

    <span class="hljs-keyword">case</span> stmt.isForeachStatement() || stmt.isForIndexStatement() || stmt.isForItemStatement():
        parseForPlusStatement(stmt)

    <span class="hljs-keyword">case</span> stmt.isSwitchStatement():
    <span class="hljs-keyword">case</span> stmt.isReturnStatement():
        parseReturnStatement(stmt)
    }
}

<span class="hljs-keyword">func</span> parseIfStatement(stmt *Statement) {
    <span class="hljs-keyword">for</span> _, condStmt := <span class="hljs-keyword">range</span> stmt.condStmts {
        condStmt.condExpr = extractExpression(condStmt.condExprTokens)
        Compile(condStmt)
    }

    <span class="hljs-keyword">if</span> stmt.defStmt==<span class="hljs-literal">nil</span> {
        <span class="hljs-keyword">return</span>
    }
    Compile(stmt.defStmt)
}
</code></pre>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="qk020-syntax-analysis.html" class="navigation navigation-prev " aria-label="Previous page: Quick制作日志 － 语法分析">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="qk022-syntax-analysis-expression.html" class="navigation navigation-next " aria-label="Next page: Expression">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"Statement","level":"1.4.1","depth":2,"next":{"title":"Expression","level":"1.4.2","depth":2,"path":"chapter/qk022-syntax-analysis-expression.md","ref":"chapter/qk022-syntax-analysis-expression.md","articles":[]},"previous":{"title":"Quick制作日志 － 语法分析","level":"1.4","depth":1,"path":"chapter/qk020-syntax-analysis.md","ref":"chapter/qk020-syntax-analysis.md","articles":[{"title":"Statement","level":"1.4.1","depth":2,"path":"chapter/qk021-syntax-analysis-statement.md","ref":"chapter/qk021-syntax-analysis-statement.md","articles":[]},{"title":"Expression","level":"1.4.2","depth":2,"path":"chapter/qk022-syntax-analysis-expression.md","ref":"chapter/qk022-syntax-analysis-expression.md","articles":[]},{"title":"Primary Expression","level":"1.4.3","depth":2,"path":"chapter/qk023-syntax-analysis-primary-expression.md","ref":"chapter/qk023-syntax-analysis-primary-expression.md","articles":[]},{"title":"Constant Value","level":"1.4.4","depth":2,"path":"chapter/qk024-syntax-analysis-constant.md","ref":"chapter/qk024-syntax-analysis-constant.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"chapter/qk021-syntax-analysis-statement.md","mtime":"2021-06-30T06:51:26.763Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-07-01T03:36:21.948Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

